/** \file    winver.h
  * \brief   Simple and fast functions for Windows version determination.
  * \date    2003
  * \author  Fedor Chelnokov
  * \version $Header: /home/cscom1r4/cvsroot/cs/include/mswin/winver.h,v 1.1 2004/01/23 21:29:34 cscom1r4 Exp $
  */

#ifndef _winver_h_
#define _winver_h_

namespace mswin {

///\return most interesting fields of OSVERSIONINFO
void get_winver(unsigned & major, unsigned & minor, unsigned & build, unsigned & platform);

///\return true for Windows 95, 98, ME
bool is_win95();

///\return true for Windows 98, ME
bool is_win98();

///\return true for Windows ME
bool is_winME();

///\return true for Windows NT, 2000, XP, Server 2003
bool is_winNT();

///\return true for Windows 2000, XP, Server 2003
bool is_win2000();

///\return true for Windows XP, Server 2003
bool is_winXP();

///\return true for Windows Server 2003
bool is_win2003();

} //namespace mswin

#endif //_winver_h_
